﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Delbill.aspx.cs" Inherits="Runda.CMS.Portal.SalesManage.Delbill" %>
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
        <script src="../Content/global.js" type="text/javascript"></script>     
  <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Tab/tabs.css" rel="stylesheet" type="text/css" /> 
    <script type="text/javascript">
       
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table class="mnubar" cellspacing="0" cellpadding="0">
        <tbody>
            <tr>
                <td width="9">
                    <img hspace="3" src="../Content/Menu/mnu_vSpacer.gif" />
                </td>
                <td class="icMenu" nowrap>                 
                    <span class="menu" title="关闭并刷新账套数据" onclick="window.opener.document.getElementById('ctl00_cphBody_btnSearchBasic').click();window.close();">
                        <img class="mnuBtn" src="../Content/Menu/Close_16_blue.gif"><span class="mnuBtn">关闭并刷新</span></span>
                </td>
            </tr>
        </tbody>
    </table>
    <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
    </div>
    <div id="areaForm" class="area">
        <table cellspacing="0" cellpadding="0" width="100%">
            <tbody>
                <tr>
                    <td valign="top">
                        <div style="display: inline" id="appForm_tab0" class="tab">
                       
                            <table style="table-layout: fixed" id="Section1" cellspacing="0" cellpadding="3"
                                width="100%"> 
                                    <tr>
                                        <td align="right" style="width:10%">
                                           发票编号：
                                        </td>
                                        <td style="width:15%">
                                            <asp:TextBox ID="txtbillno" runat="server"></asp:TextBox>
                                        </td>
                                        <td align="left" style="width:10%">
                                            <asp:Button ID="btnQuery" runat="server" Text="查  找" onclick="btnQuery_Click" />
                                        </td>
                                        <td style="width:65%" align="left">
                                            <asp:Button ID="btnDel" runat="server" Text="删  除" onclick="btnDel_Click" Enabled="false"/>
                                        </td>
                                    </tr>                                 
                                                                                                                                                             
                            </table>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <asp:Panel runat="server" ID="panel1">
                <rad:RadGrid runat="server" ID="gridAccessoryList" Skin="OCM" 
                    AutoGenerateColumns="False" GridLines="None" EnableAJAX="True" EnableAJAXLoadingTemplate="True"
                    AllowSorting="True" AllowPaging="false">
                        <AJAXLoadingTemplate>
                            <img src="../Images/loadding_orange.gif" /> 数据加载中...
                        </AJAXLoadingTemplate>
                        <ClientSettings EnableClientKeyValues="true">
                            <Selecting AllowRowSelect="true" /> 
                        </ClientSettings>
                        <MasterTableView DataKeyNames="rowkeyinfo">  
                            
                        <Columns>
                            <rad:GridBoundColumn DataField="cBVCode" HeaderText="发票编号" AllowSorting="true"><ItemStyle Width="140px" /></rad:GridBoundColumn>
                            <rad:GridBoundColumn DataField="dDate"  DataFormatString="{0:yyyy-MM-dd}" HeaderText="发票日期" AllowSorting="true"><ItemStyle Width="120px" /></rad:GridBoundColumn>
                            <rad:GridTemplateColumn HeaderText="客户" SortExpression="customerName">
                             <ItemTemplate>
                                <asp:HyperLink ID="lnkEdit" Width="160px" CssClass="tdautolen" runat="server" ToolTip='<%# Eval("customerName") %>' Text='<%# Eval("customerName") %>' Target="_blank"></asp:HyperLink>
                             </ItemTemplate>
                             </rad:GridTemplateColumn>
                            <rad:GridBoundColumn DataField="cMemo" HeaderText="备注" AllowSorting="true"><ItemStyle Width="200px" /></rad:GridBoundColumn>
                            <rad:GridBoundColumn DataField="CategoryName" HeaderText="存货大类"  AllowSorting="true"><ItemStyle Width="120px" />
                            </rad:GridBoundColumn>
                            <rad:GridBoundColumn DataField="instrumentName" HeaderText="存货名称"  AllowSorting="true"><ItemStyle Width="240px" />
                            </rad:GridBoundColumn>
                            <rad:GridBoundColumn DataField="instrumentStandard" HeaderText="规格" AllowSorting="true"><ItemStyle Width="120px" />
                            </rad:GridBoundColumn>
                            <rad:GridBoundColumn DataField="iQuantity" HeaderText="数量"  DataFormatString="{0:N}"  AllowSorting="true"><ItemStyle Width="60px" />
                            </rad:GridBoundColumn>
                            <rad:GridBoundColumn DataField="iTaxUnitPrice" HeaderText="含税单价"  DataFormatString="{0:N}"  AllowSorting="true"><ItemStyle Width="80px" />
                            </rad:GridBoundColumn>
                            <rad:GridBoundColumn DataField="iNatMoney" HeaderText="金额"  DataFormatString="{0:N}"  AllowSorting="true"><ItemStyle Width="80px" />
                            </rad:GridBoundColumn> 
                            <rad:GridBoundColumn DataField="iNatSum" HeaderText="价税合计" DataFormatString="{0:N}"  AllowSorting="true"><ItemStyle Width="80px" />
                            </rad:GridBoundColumn> 
                            
                            
                           <%-- <rad:GridTemplateColumn HeaderText="操作">
                             <ItemTemplate> 
                                 <asp:LinkButton ID="lnkbtnDelete" runat="server" CommandName="delete">删除</asp:LinkButton>
                             </ItemTemplate>
                             </rad:GridTemplateColumn> --%>
                        </Columns>
                    </MasterTableView>
                </rad:RadGrid>
     
             </asp:Panel>
    </form>
</body>
</html>